package com.example.service.impl;

import com.example.dao.OrderDetailDao;
import com.example.domain.OrderDetail;
import com.example.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {
    @Autowired
    private OrderDetailDao orderDetailDao;
    @Override
    public void insertdish(OrderDetail orderDetail) {
        orderDetailDao.insertdish(orderDetail);
    }

    @Override
    public void insertsetmeal(OrderDetail orderDetail) {
        orderDetailDao.insertsetmeal(orderDetail);
    }

    @Override
    public List<OrderDetail> selectbyorder(Long id) {
        return orderDetailDao.selectbyorder(id);
    }
}
